//package com.topscomm.pm.service.impl;
//
//import java.util.List;
//import java.util.Map;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.stereotype.Service;
//
//import com.itextpdf.text.pdf.PdfStructTreeController.returnType;
//import com.topscomm.cbo.service.ICboMessageAppService;
//import com.topscomm.tap.common.ParameterCache;
//
//@Service
//public class PmCboMessageAppService{
//	@Autowired
//    @Qualifier("hessianMessageAppService")
//	private ICboMessageAppService hessianMessageAppService;
//	@Autowired
//    @Qualifier("cboMessageAppService")
//	private ICboMessageAppService localMessageAppService;
//
//	public int insertMap(Map<String, Object> map) {
//		if (ParameterCache.getIntValue("isNeedSendToOa")==1) {
//			return hessianMessageAppService.insertMap(map);
//		}else {
//			return localMessageAppService.insertMap(map);
//		}
//	}
//
//	public int insertList(List<Map<String, Object>> list) {
//		if (ParameterCache.getIntValue("isNeedSendToOa")==1) {
//			return hessianMessageAppService.insertList(list);
//		}else {
//			return localMessageAppService.insertList(list);
//		}
//	}
//}
